home *** CD-ROM | disk | FTP | other *** search
/ World of Education / World of Education.iso / world_e / ecr.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1992-03-09  |  7KB  |  241 lines

  1. @echo off
  2. if "%1" == "" goto error1
  3. if "%2" == "" goto error1
  4. if not exist INSTALL.BAT goto error2
  5. if "%2" == "HARD" goto hard
  6. if "%2" == "Hard" goto hard
  7. if "%2" == "hard" goto hard
  8. if "%2" == "HIGH" goto high
  9. if "%2" == "High" goto high
  10. if "%2" == "high" goto high
  11. if "%2" == "LOW"  goto low
  12. if "%2" == "Low"  goto low
  13. if "%2" == "low"  goto low
  14. goto error1
  15. :hard
  16. mkdir %1
  17. cls
  18. @echo on
  19. copy README.DOC %1 /v
  20. copy ECRORDER.FRM %1 /v
  21. copy INSTALL.BAT %1 /v
  22. copy ECR.EXE %1 /v
  23. copy ECR.OVR %1 /v
  24. copy ECR.CFG %1 /v
  25. copy ECR2WP.WPM %1 /v
  26. copy ECR2WP.LTR %1 /v
  27. copy ECR2WPQK.WPM %1 /v
  28. copy ECR2WPQK.LTR %1 /v
  29. copy SAMPLE.UTL %1 /v
  30. copy SAMPLE.SFL %1 /v
  31. copy SAMPLE.STD %1 /v
  32. copy SAMPLE.SCO %1 /v
  33. copy SAMPLE.RPT %1 /v
  34. copy AUTOEXEC.360 %1 /v
  35. copy AUTOEXEC.720 %1 /v
  36. copy CONFIG.ECR %1 /v
  37. copy ECRDOC.EXE %1 /v
  38. @echo off
  39. ECRDOC %1
  40. echo  
  41. echo Files copied.
  42. echo  
  43. echo  
  44. echo Make sure your CONFIG.SYS file (located in your root directory)
  45. echo contains the line FILES=10 or higher.  Generally, this will
  46. echo already be the case.
  47. echo  
  48. echo Before typing any of the lines below, you need to make the
  49. echo ECR directory your current directory by typing
  50. echo    CD %1
  51. echo  
  52. echo To see last-minute updates,  type
  53. echo    TYPE README.DOC
  54. echo  
  55. echo The user's guide contains tutorial and reference sections.
  56. echo To print the user's guide type
  57. echo    COPY ECR.DOC PRN:
  58. echo  
  59. echo To start using the Electronic Class Roll type
  60. echo    ECR
  61. echo  
  62. echo Enjoy!
  63. goto end
  64. :high
  65. cls
  66. @echo on
  67. copy README.DOC %1 /v
  68. copy ECRORDER.FRM %1 /v
  69. copy INSTALL.BAT %1 /v
  70. copy ECR.EXE %1 /v
  71. copy ECR.OVR %1 /v
  72. copy ECR.CFG %1 /v
  73. copy ECR2WP.WPM %1 /v
  74. copy ECR2WP.LTR %1 /v
  75. copy ECR2WPQK.WPM %1 /v
  76. copy ECR2WPQK.LTR %1 /v
  77. copy SAMPLE.UTL %1 /v
  78. copy SAMPLE.SFL %1 /v
  79. copy SAMPLE.STD %1 /v
  80. copy SAMPLE.SCO %1 /v
  81. copy SAMPLE.RPT %1 /v
  82. copy AUTOEXEC.360 %1 /v
  83. copy AUTOEXEC.720 %1 /v
  84. copy CONFIG.ECR %1 /v
  85. copy ECRDOC.EXE %1 /v
  86. @echo off
  87. ECRDOC %1
  88. if not exist %1\AUTOEXEC.BAT copy AUTOEXEC.720 %1\AUTOEXEC.BAT
  89. if exist %1\CONFIG.SYS goto msg1
  90. copy CONFIG.ECR %1\CONFIG.SYS
  91. echo  
  92. echo Files copied.
  93. echo  
  94. goto cont1
  95. :msg1
  96. echo  
  97. echo Files copied.
  98. echo  
  99. echo  
  100. echo Make sure the CONFIG.SYS file on your program disk
  101. echo contains the line FILES=10 or higher.  Generally, this will
  102. echo already be the case.
  103. :cont1
  104. echo  
  105. echo Before typing any of the lines below, you need to make the drive
  106. echo containing the ECR files your current drive by typing
  107. echo    %1
  108. echo  
  109. echo To see last-minute updates,  type
  110. echo    TYPE README.DOC
  111. echo  
  112. echo The user's guide contains tutorial and reference sections.
  113. echo To print the user's guide type
  114. echo    COPY ECR.DOC PRN:
  115. echo  
  116. echo To start using the Electronic Class Roll type
  117. echo    ECR
  118. echo  
  119. echo Enjoy!
  120. goto end
  121. :low
  122. cls
  123. @echo on
  124. copy README.DOC %1 /v
  125. copy ECRORDER.FRM %1 /v
  126. copy ECR.EXE %1 /v
  127. copy ECR.OVR %1 /v
  128. copy ECR.CFG %1 /v
  129. @echo off
  130. if not exist %1\AUTOEXEC.BAT copy AUTOEXEC.360 %1\AUTOEXEC.BAT
  131. if exist %1\CONFIG.SYS goto msg2
  132. copy CONFIG.ECR %1\CONFIG.SYS
  133. goto cont2
  134. :msg2
  135. echo  
  136. echo Make sure the CONFIG.SYS file on your Program Disk
  137. echo contains the line FILES=10 or higher.  Generally, this will
  138. echo already be the case.
  139. echo  
  140. :cont2
  141. echo Insert a second blank, formatted diskette (the Classes Disk) in drive B and
  142. pause
  143. @echo on
  144. copy ECR2WP.WPM %1 /v
  145. copy ECR2WP.LTR %1 /v
  146. copy ECR2WPQK.WPM %1 /v
  147. copy ECR2WPQK.LTR %1 /v
  148. copy SAMPLE.UTL %1 /v
  149. copy SAMPLE.SFL %1 /v
  150. copy SAMPLE.STD %1 /v
  151. copy SAMPLE.SCO %1 /v
  152. copy SAMPLE.RPT %1 /v
  153. @echo off
  154. ECRDOC %1
  155. echo  
  156. echo Files copied.
  157. echo  
  158. echo  
  159. echo Keep the original ECR distribution disk in a safe place in case
  160. echo you want to install the Electronic Class Roll onto another disk.
  161. echo  
  162. echo  
  163. echo Before typing any of the lines below, you need to make insert the
  164. echo Program Disk in drive A and the Classes Disk in drive B.
  165. echo  
  166. echo To see last-minute updates,  type
  167. echo    TYPE A:README.DOC
  168. echo  
  169. echo The user's guide contains tutorial and reference sections.
  170. echo To print the user's guide type
  171. echo    COPY B:ECR.DOC PRN:
  172. echo  
  173. echo To start using the Electronic Class Roll, type
  174. echo    ECR B:
  175. echo  
  176. echo Enjoy!
  177. goto end
  178. :error1
  179. cls
  180. echo Welcome to the Electronic Class Roll installation program!
  181. echo  
  182. echo You need to type two keywords after the word INSTALL.  The first
  183. echo keyword tells in which drive and directory you want the Electronic
  184. echo Class Roll files installed.  The second keyword tells on what kind
  185. echo of disk you are installing the Electronic Class Roll.  It is "LOW"
  186. echo if you are installing on 360K floppy disks, "HIGH" if you are
  187. echo installing on a 3-1/2" or high-density floppy disk, or "HARD" if
  188. echo you are installing on a hard disk (don't include the quotes).
  189. echo  
  190. echo INSTALLING ON 360K FLOPPY DISKS
  191. echo This procedure assumes both drives A and B are 360K drives.  If you
  192. echo have a higher-density drive, skip to the next section.  You will need
  193. echo two blank, formatted diskettes.  Call the first the "Program Disk"
  194. echo and the second the "Classes Disk."  It's best if the Program Disk is
  195. echo bootable (formatted with the "/s" parameter).  Insert the ECR
  196. echo distribution disk in drive A, the Program Disk in drive B, and type
  197. echo    A:
  198. echo    INSTALL B: LOW
  199. echo  
  200. echo To see the rest of the instructions,
  201. pause
  202. cls
  203. echo INSTALLING ON A 3-1/2" OR HIGH-DENSITY FLOPPY DISK
  204. echo You will need one blank, formatted diskette.  It's best if it is
  205. echo bootable (has been formatted with the "/s" parameter).  Insert the
  206. echo ECR distribution disk in one drive and the blank disk in another.
  207. echo Make the drive containing the ECR distribution disk the current drive.
  208. echo Then re-type INSTALL with the first keyword being the drive containing
  209. echo the blank disk, and the second keyword "HIGH."  For example, to install
  210. echo the ECR to a blank disk in drive B, type
  211. echo    INSTALL B: HIGH
  212. echo  
  213. echo INSTALLING ON A HARD DISK
  214. echo You need approximately 440K free on your hard disk.  Make the drive
  215. echo (or directory) containing the ECR distribution files the current one.
  216. echo Then re-type INSTALL with the first keyword being the drive and
  217. echo directory for where you want to install the ECR files, and the second
  218. echo keyword "HARD."  For example, to install the ECR to a sub-directory
  219. echo called ECR on drive C, type
  220. echo    INSTALL C:\ECR HARD
  221. echo  
  222. echo  
  223. goto end
  224. :error2
  225. cls
  226. echo The Electronic Class Roll distribution files were
  227. echo not found in the current drive (or directory).
  228. echo  
  229. echo Please change to the drive (or directory) where these
  230. echo files are located, then run this program again.
  231. echo  
  232. echo For example, if you are installing the Electronic
  233. echo Class Roll from a floppy in drive A, first type
  234. echo    A:
  235. echo  
  236. echo then run this program again.
  237. echo  
  238. echo  
  239. goto end
  240. :end
  241.